
package com.zsrt.jmj.computer.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;
@Scope("prototype")
@Table(name="jmj_computer_t")
public class ComputerEntity {
	/**
	 * 电脑ID
	 */
	@Id
	private int id;
	
	/**
	 * 电脑品牌名称
	 */
	private String brand;
	/**
	 * 电脑型号
	 */
	private String model;
	/**
	 * 电脑价格
	 */
	private double price;
	/**
	 * 电脑所属公司的ID
	 */
	private int companyId;

	//以下非数据库字段 
	/**
	 * 电脑所属公司名称 暂时的 损失的 transient
	 */
	@Transient
	private String companyName;
	
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	
	
}
